package com.zka.crm.settings.service.Impl;

import com.zka.crm.settings.domain.User;
import com.zka.crm.settings.mapper.UserMapper;
import com.zka.crm.settings.service.UserService;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service("userService")
public class UserServiceImpl implements UserService {
        private final UserMapper userMapper;
        //自动注入
    public UserServiceImpl(UserMapper userMapper) {
            this.userMapper = userMapper;
        }

        public User queryUserByLoginActAndPwd(Map<String, Object> map) {
        return userMapper.selectUserByLoginActAndPwd(map);
    }

    @Override
    public List<User> queryAllUsers() {
        return userMapper.selectAllUsers();
    }
}
